package com.zhang.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 关联表：角色与菜单权限表
 * </p>
 *
 * @author 创世神
 * @since 2023-07-06
 */
@TableName("asso_role_menu")
@Data
public class RoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long roleId;

    private Long menuId;

    @TableField(exist = false)
    private List<Long> menuIds;

}
